pack_file object
This method will create a pack file and open it in write mode.
bool create(string filename)
Parameters:
filename
The file to create.
Return value:
true on success, false on failure.
Remarks:
If the file already exists, it will be overwritten.
Example:
// Create a pack file and add some test files.
void main()
{
pack_file test;
test.create("pack.dat");
test.add_file("test1.txt","t1");
test.add_file("test2.txt","t2");
test.add_file("test3.txt","t3");
test.close();
}